package com.woniu.model.mallSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 品类表
 * </p>
 *
 * @author Lzj
 * @since 2023-10-19
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_category")
@ApiModel(value = "Category对象", description = "品类表")
public class Category implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("品类主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("品类名")
    private String categoryName;

    @ApiModelProperty("排列顺序")
    private Integer sequence;

    @ApiModelProperty("父品类id")
    private Long parentCategoryId;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

    @ApiModelProperty("删除标志(0未删除，1删除）")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("上架状态")
    private Integer status;
}
